package Test1008;

public class Test06 {
    public static void main(String[] args) {
        //输出1-1000内能被7整除的数
        int count=0;
        for (int i = 1; i <=1000 ; i++) {
            if (i % 7 == 0) {
                System.out.println("1-1000内能被7整除的数:"+i);
                count++;
            }
        }
        System.out.println("循环了:"+count+"次");
    }
}
